package com.aaa.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.aaa.entity.Permission;
import org.apache.ibatis.annotations.Mapper;
import org.mybatis.spring.annotation.MapperScan;

import java.util.List;

/**
 * (Permission)表数据库访问层
 *
 * @author makejava
 * @since 2023-01-03 09:52:31
 */
@Mapper
public interface PermissionMapper extends BaseMapper<Permission> {
    /**
     * 根据userId查询他拥有的权限
     *
     * @param userId 用户id
     * @return {@link List}<{@link Permission}>
     */
    List<Permission> selectPermissionByUserid(Integer userId);
}

